package com.macro.mall.service;

import com.macro.mall.dto.BmsSightseeingBusParam;
import com.macro.mall.dto.BmsSightseeingBusPointParam;
import com.macro.mall.model.BmsSightseeingBus;
import com.macro.mall.model.BmsSightseeingBusPoint;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 观光车点位管理Service
 * Created by macro on 2018/4/26.
 */
public interface BmsSightseeingBusPointService {
    /**
     * 获取观光车数据
     */
    List<BmsSightseeingBusPoint> getList(BmsSightseeingBusPointParam bmsSightseeingBusPointParam);

    /**
     * 新增观光车
     */
    @Transactional
    int create(BmsSightseeingBusPointParam bmsSightseeingBusPointParam);

    /**
     * 修改观光车
     */
    int update(BmsSightseeingBusPointParam bmsSightseeingBusPointParam);

    /**
     * 获取观光车信息
     */
    BmsSightseeingBusPoint getItem(Long id);

    /**
     * 批量删除观光车
     */
    @Transactional
    int delete(List<Long> ids);

}
